package com.zfei.gfb.request;

import com.zfei.gfb.util.ObjUtil;
import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author fgh
 */
@Data
public class GfbOrderRequest {

    // 物品id
    @ApiModelProperty("商品id")
    private Integer goodsId;


    public void checkInsertNull() {
        if (ObjUtil.anyNull(goodsId)) {
            throw new StatusException(Status.INVALID_ARGUMENT);
        }

    }

}

